<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>IDCardUtils | hinny-js</title>
	<meta name="description" content="Documentation for hinny-js">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">hinny-js</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Globals</a>
				</li>
				<li>
					<a href="../modules/_core_idcardutils_.html">&quot;core/IDCardUtils&quot;</a>
				</li>
				<li>
					<a href="_core_idcardutils_.idcardutils.html">IDCardUtils</a>
				</li>
			</ul>
			<h1>Interface IDCardUtils</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">IDCardUtils</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#convert15cardto18" class="tsd-kind-icon">convert15<wbr>Card<wbr>To18</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#getagebyidcard" class="tsd-kind-icon">get<wbr>Age<wbr>ById<wbr>Card</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#getbirthbyidcard" class="tsd-kind-icon">get<wbr>Birth<wbr>ById<wbr>Card</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#getdatebyidcard" class="tsd-kind-icon">get<wbr>Date<wbr>ById<wbr>Card</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#getgenderbyidcard" class="tsd-kind-icon">get<wbr>Gender<wbr>ById<wbr>Card</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#getmonthbyidcard" class="tsd-kind-icon">get<wbr>Month<wbr>ById<wbr>Card</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#getprovincebyidcard" class="tsd-kind-icon">get<wbr>Province<wbr>ById<wbr>Card</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#getyearbyidcard" class="tsd-kind-icon">get<wbr>Year<wbr>ById<wbr>Card</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#validatecard" class="tsd-kind-icon">validate<wbr>Card</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#validatehkcard" class="tsd-kind-icon">validateHKCard</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#validateidcard10" class="tsd-kind-icon">validate<wbr>IdCard10</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#validateidcard15" class="tsd-kind-icon">validate<wbr>IdCard15</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#validateidcard18" class="tsd-kind-icon">validate<wbr>IdCard18</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="_core_idcardutils_.idcardutils.html#validatetwcard" class="tsd-kind-icon">validateTWCard</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="convert15cardto18" class="tsd-anchor"></a>
					<h3>convert15<wbr>Card<wbr>To18</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">convert15<wbr>Card<wbr>To18<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>将15位身份证号码转换为18位</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>15位身份编码</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h4>
							<p>18位身份编码，失败返回null</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="getagebyidcard" class="tsd-anchor"></a>
					<h3>get<wbr>Age<wbr>ById<wbr>Card</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Age<wbr>ById<wbr>Card<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jint" class="tsd-signature-type">JInt</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>根据身份编号获取年龄</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编号</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jint" class="tsd-signature-type">JInt</a></h4>
							<p>年龄</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="getbirthbyidcard" class="tsd-anchor"></a>
					<h3>get<wbr>Birth<wbr>ById<wbr>Card</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Birth<wbr>ById<wbr>Card<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>根据身份编号获取生日</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编号</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h4>
							<p>生日(yyyyMMdd)</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="getdatebyidcard" class="tsd-anchor"></a>
					<h3>get<wbr>Date<wbr>ById<wbr>Card</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Date<wbr>ById<wbr>Card<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jshort" class="tsd-signature-type">JShort</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>根据身份编号获取生日天</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编号</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jshort" class="tsd-signature-type">JShort</a></h4>
							<p>生日(dd)</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="getgenderbyidcard" class="tsd-anchor"></a>
					<h3>get<wbr>Gender<wbr>ById<wbr>Card</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Gender<wbr>ById<wbr>Card<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>根据身份编号获取性别</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编号</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h4>
							<p>性别(M 男, F 女, N 未知)</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="getmonthbyidcard" class="tsd-anchor"></a>
					<h3>get<wbr>Month<wbr>ById<wbr>Card</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Month<wbr>ById<wbr>Card<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jshort" class="tsd-signature-type">JShort</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>根据身份编号获取生日月</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编号</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jshort" class="tsd-signature-type">JShort</a></h4>
							<p>生日(MM)</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="getprovincebyidcard" class="tsd-anchor"></a>
					<h3>get<wbr>Province<wbr>ById<wbr>Card</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Province<wbr>ById<wbr>Card<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>根据身份编号获取户籍省份</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编码</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h4>
							<p>省级编码。</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="getyearbyidcard" class="tsd-anchor"></a>
					<h3>get<wbr>Year<wbr>ById<wbr>Card</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Year<wbr>ById<wbr>Card<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jshort" class="tsd-signature-type">JShort</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>根据身份编号获取生日年</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编号</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jshort" class="tsd-signature-type">JShort</a></h4>
							<p>生日(yyyy)</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="validatecard" class="tsd-anchor"></a>
					<h3>validate<wbr>Card</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">validate<wbr>Card<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>验证身份证是否合法</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="validatehkcard" class="tsd-anchor"></a>
					<h3>validateHKCard</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">validateHKCard<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>验证香港身份证号码(存在Bug，部份特殊身份证无法检查)<br/></p>
									<p>
										身份证前2位为英文字符，如果只出现一个英文字符则表示第一位是空格，
										对应数字58 前2位英文字符A-Z分别对应数字10-35
										最后一位校验码为0-9的数字加上字符"A"，"A"代表10
									</p>
									<p>
										将身份证号码全部转换为数字，分别对应乘9-1相加的总和，整除11则证件号码有效
									</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份证号码</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></h4>
							<p>验证码是否符合</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="validateidcard10" class="tsd-anchor"></a>
					<h3>validate<wbr>IdCard10</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">validate<wbr>IdCard10<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">[]</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>验证10位身份编码是否合法</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编码</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">[]</span></h4>
							<p>身份证信息数组</p>
							<p>
								[0] - 台湾、澳门、香港 <br/>
								[1] - 性别(男M,女F,未知N) <br/>
								[2] - 是否合法(合法true,不合法false) <br/>
								若不是身份证件号码则返回null <br/>
							</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="validateidcard15" class="tsd-anchor"></a>
					<h3>validate<wbr>IdCard15</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">validate<wbr>IdCard15<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>验证15位身份编码是否合法</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编码</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></h4>
							<p>是否合法</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="validateidcard18" class="tsd-anchor"></a>
					<h3>validate<wbr>IdCard18</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">validate<wbr>IdCard18<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>验证18位身份编码是否合法</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份编码</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></h4>
							<p>是否合法</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="validatetwcard" class="tsd-anchor"></a>
					<h3>validateTWCard</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">validateTWCard<span class="tsd-signature-symbol">(</span>idCard<span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>验证台湾身份证号码</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>idCard: <a href="../modules/_types_java_lang_jobject_d_.html#jstring" class="tsd-signature-type">JString</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>身份证号码</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../modules/_types_java_lang_jobject_d_.html#jboolean" class="tsd-signature-type">JBoolean</a></h4>
							<p>验证码是否符合</p>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Globals</em></a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/_core_idcardutils_.html">&quot;core/IDCard<wbr>Utils&quot;</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-interface tsd-parent-kind-module">
						<a href="_core_idcardutils_.idcardutils.html" class="tsd-kind-icon">IDCard<wbr>Utils</a>
						<ul>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#convert15cardto18" class="tsd-kind-icon">convert15<wbr>Card<wbr>To18</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#getagebyidcard" class="tsd-kind-icon">get<wbr>Age<wbr>ById<wbr>Card</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#getbirthbyidcard" class="tsd-kind-icon">get<wbr>Birth<wbr>ById<wbr>Card</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#getdatebyidcard" class="tsd-kind-icon">get<wbr>Date<wbr>ById<wbr>Card</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#getgenderbyidcard" class="tsd-kind-icon">get<wbr>Gender<wbr>ById<wbr>Card</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#getmonthbyidcard" class="tsd-kind-icon">get<wbr>Month<wbr>ById<wbr>Card</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#getprovincebyidcard" class="tsd-kind-icon">get<wbr>Province<wbr>ById<wbr>Card</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#getyearbyidcard" class="tsd-kind-icon">get<wbr>Year<wbr>ById<wbr>Card</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#validatecard" class="tsd-kind-icon">validate<wbr>Card</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#validatehkcard" class="tsd-kind-icon">validateHKCard</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#validateidcard10" class="tsd-kind-icon">validate<wbr>IdCard10</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#validateidcard15" class="tsd-kind-icon">validate<wbr>IdCard15</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#validateidcard18" class="tsd-kind-icon">validate<wbr>IdCard18</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface">
								<a href="_core_idcardutils_.idcardutils.html#validatetwcard" class="tsd-kind-icon">validateTWCard</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
					<li class=" tsd-kind-variable tsd-parent-kind-module">
						<a href="../modules/_core_idcardutils_.html#idcardutils-1" class="tsd-kind-icon">id<wbr>Card<wbr>Utils</a>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer>
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
				<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
				<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
				<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
				<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>